package j04baozhuang;

public class J4zhuangxiang {
    public static void main(String[] args) {
        //装箱，变成包装类
        //手动装箱
        int a = 6;
        Integer a1 = new Integer(a);

        //自动变
        Integer a2 = a;

        //自动拆
        Integer i100 = new Integer(100);
        int i100_1 = i100.intValue();//手动
        int i100_2 = i100;//自动拆

        int x = 8;
        Object o1 = x;


    }
}

class J5{

    public static void main(String[] args) {
        //基本-string
        int a = 3;
        String sa = String.valueOf(a);

        String s2 = "100";
        byte b1 = Byte.parseByte(s2);
        Byte b2 = Byte.valueOf(s2);
    }
}
